import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SCrossCopyInitChannelError
    
    export  class SCrossCopyInitChannelError extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SCrossCopyInitChannelError();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.channelId);
            arg1.writeString(this.publicUrl);
            arg1.writeString(this.findSessionUrl);
            arg1.writeString(this.contextSessionUrl);
            arg1.writeInt(this.crossServer);
            arg1.writeInt(this.crossCopyChannel);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.channelId = arg1.readInt();
            this.publicUrl = arg1.readString();
            this.findSessionUrl = arg1.readString();
            this.contextSessionUrl = arg1.readString();
            this.crossServer = arg1.readInt();
            this.crossCopyChannel = arg1.readInt();
            return;
        }

        public /* const */_type: int=445;

        public /* var */channelId: int;

        public /* var */publicUrl: string;

        public /* var */findSessionUrl: string;

        public /* var */contextSessionUrl: string;

        public /* var */crossServer: int;

        public /* var */crossCopyChannel: int;

        public static /* var */_regist: SCrossCopyInitChannelError;
    }

            SCrossCopyInitChannelError._regist = new SCrossCopyInitChannelError(true);
        